﻿using System;
using Volo.Abp.Domain.Entities;

namespace Thinker.SignChannel.Entities;

public class Record : BasicAggregateRoot<Guid>
{
    protected Record()
    {
        IdNumber = string.Empty;
    }

    public Record(Guid id, string idNumber, DateTime recordTime) : base(id)
    {
        IdNumber = idNumber;
        RecordTime = recordTime;
    }

    public Record(Guid id, string idNumber,
        DateTime recordTime,
        Guid? personId,
        Guid? timeId,
        string personName) :
        base(id)
    {
        IdNumber = idNumber;
        RecordTime = recordTime;
        PersonId = personId;
        TimeId = timeId;
        PersonName = personName;
    }

    public string IdNumber { get; set; }

    public string PersonName { get; set; }

    public DateTime RecordTime { get; set; }

    public Guid? PersonId { get; set; }

    public Guid? TimeId { get; set; }
}